public class StringBufferOperation
{
	public static void main(String[] args)
	{
		StringBuffer buf = new StringBuffer();
		buf.append("This is a book");
		System.out.println("Append String: " + buf);
		buf.insert(10, "bad ");
		System.out.println("Insert String: " + buf);
		buf.replace(10, 13, "good");
		System.out.println("Replace String: " + buf);
		buf.delete(10, 15);
		System.out.println("Delete String: " + buf);
		buf.reverse();
		System.out.println("Reverse String: " + buf);
	}
}